package org.happen.android.bean.response;

import org.happen.android.bean.BaseResponse;
import org.happen.android.bean.IResponseError;

public class FailResponse extends BaseResponse implements IResponseError
{

	private static final long serialVersionUID = 1L;

	public static FailResponse NET_EX = new FailResponse(new RuntimeException("net exception"));

	public static FailResponse JSON_EX = new FailResponse(new RuntimeException("json exception"));

	public static FailResponse TOKEN_EX = new FailResponse(new RuntimeException("token exception"));

	public Exception exception;

	public FailResponse()
	{
		this(new RuntimeException("unknow exception"));
	}

	public FailResponse(Exception e)
	{
		super();
		this.exception = e;
	}
}